import request from '@/utils/request.js'

// 获取指定用户信息
export const getUserProfile = () => {
  return request({
    method: 'GET',
    url: 'v1_0/user/profile'
  })
}

// 用户昵称修改
export const updateUser = data => {
  return request({
    method: 'PATCH',
    url: 'v1_0/user/profile',
    data
  })
}

// 更新头像
export const updateUserAvatar = data => {
  return request({
    method: 'PATCH',
    url: 'v1_0/user/photo',
    data
  })
}
